<?php

class favourite_page extends Model {
	private $_Name;
	private $_Link;
	private $_Image;

	private function _setDefaultValues($arrInitialValues = null){
		if (isset($arrInitialValues['name']) && !empty($arrInitialValues['name']))
			$this->setName($arrInitialValues['name']);
		else 
			$this->setName('');

		if (isset($arrInitialValues['link']) && !empty($arrInitialValues['link']))
			$this->setLink($arrInitialValues['link']);
		else 
			$this->setLink('');
			
		if (isset($arrInitialValues['image']) && !empty($arrInitialValues['image']))
			$this->setImage($arrInitialValues['image']);
		else 
			$this->setImage('');
	}

	public function __construct($arrInitialValues = null) {
		$this->setTable('favourite_pages');
		$this->setColumnId('favourite_page_id');
		$this->_setDefaultValues($arrInitialValues);
		parent::__construct ();
	}

	public function setName($value){
		$this->_Name = $value;
	}

	public function getName(){
		return $this->_Name;
	}
	
	public function setLink($value){
		$this->_Link = $value;
	}
	
	public function getLink(){
		return $this->_Link;
	}
	
	public function setImage($value){
		$this->_Image = $value;
	}
	
	public function getImage(){
		return $this->_Image;
	}
}

?>